<%@page import="ie.deloitte.cvapp.domain.EmployeeHasSkill"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
    <head>
    </head>
    <body>
        <h1>List of all the employees</h1>
        <table class= "bordered">
		<thead>
            <tr>
                <th><b>Employee ID</b></th>
                <th><b>Name</b></th>
                <th><b>Surname</b></th>
                <th><b>Update Personal Info</b></th>
                <th><b>Add Experience</b></th>
                <th><b>Show Experiences</b></th>
                <th><b>Add Skill</b></th>
                <th><b>Show Skills</b></th>
                <th><b>Generate CV</b></th>
            </tr>
            </thead>
<!--             <tbody> -->
<%--                 <c:forEach var="employee" items="${employees}"> --%>

<!--                     <tr> -->
<%--                        <td><a href="show?employeeid=<c:out value="${employee.idEmployee}"/>">${employee.idEmployee}</a> --%>
<!--                               </td> -->
<%--                          <td>${employee.name}</td> --%>
<%--                          <td>${employee.surname}</td>    --%>
<!-- 		</thead> -->
 		<tbody>
			<c:forEach	 var="employee" items="${employees}">
				<tr>
<tr> 
                       <td><a href="show?employeeid=<c:out value="${employee.idEmployee}"/>">${employee.idEmployee}</a>
                              </td>					
					<td>${employee.name}</td>
					<td>${employee.surname}</td>
                         <td><a href="update?employeeid=${employee.idEmployee}">Update</a></td>                    
                         <td><a href="../experience/createexperience?id=${employee.idEmployee}">Add</a></td>                    
                         <td><a href="../experience/showexperience?id=${employee.idEmployee}">Show</a></td>                    
                         <td><a href="employeeSkillUpdate?employeeId=${employee.idEmployee}">Add</a></td>                    
                         <td><a href="showSkills?employeeId=${employee.idEmployee}">Show</a></td>                    
                         <td><a href="newt?employeeid=${employee.idEmployee}">Generate</a></td>                    
                    </tr>  
                </c:forEach>
            </tbody>
        </table>
    </body>
</html>

